home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dbase / techs.zip / TECH15.ZIP / READ.ME < prev   
Text File  |  1980-01-01  |  1KB  |  36 lines

  1. PROGRAM NAME:  Fdate.PRG
  2.  
  3. DESCRIPTION:  Formats date variables to character strings.
  4.  
  5. ISSUE: March, 1985
  6. PAGE:  D3-3
  7.  
  8. SOFTWARE VERSIONS:  dBASE III, versions 1.0, 1.1
  9.  
  10. FUNCTION: This program will take date variables and convert them
  11. to character variables with one of the following formats:
  12.  
  13.         1.  Mon DD, YYYY ( Dec 1, 1985 )
  14.         2.  Mon YYYY ( Dec 1985 )
  15.         3.  Mon DD ( Dec 1 )
  16.         4.  Month DD, YYYY ( December 1, 1985 )        
  17.         5.  DD-Mon-YYYY ( 1-Dec-1985 ) 
  18.  
  19. It is set up as a PROCEDURE which takes three variables:
  20. inv_date, which is the date variable to format; a number for the
  21. format code; and finv_date, which is the character variable to
  22. receive the formatted date.  These correspond to date, code, and
  23. datestrg in the PARAMETERS statement of Fdate.PRG.
  24.             
  25. FILES NEEDED: Fdate.PRG
  26.               
  27. SETUP INSTRUCTIONS:  Call Fdate with the following syntax:
  28.  
  29.         STORE "  " TO  finv_date
  30.         DO Fdate with inv_date, 5, finv_date
  31.  
  32. In this example, 5 is the numeric code which determines the
  33. format of the output, so the resulting character string will look
  34. like 1-Dec-1985.  
  35.  
  36.